/* eslint-disable indent */
const getters = {
        sidebar: state => state.app.sidebar,
        device: state => state.app.device,
        // 用户相关数据
        token: state => state.user.token,
        avatar: state => state.user.userInfo.staffPhoto,
        // 用户名
        name: state => state.user.userInfo.username,
        // 工号
        worknum: state => state.user.userInfo.workNumber,
        // 手机号
        photo: state => state.user.userInfo.mobile,
        // 部门
        depts: state => state.user.userInfo.departmentName
    }
    // eslint-disable-next-line eol-last
export default getters